package com.zs.ktsms.service;

import com.zs.ktsms.pojo.Address;
import com.zs.ktsms.utils.Page;
import org.springframework.stereotype.Service;

@Service
public interface AddressService {

    /**
     * 获取分页数据
     * @param contact
     * @param usrName
     * @param pageNo
     * @param pageSize
     * @return
     */
    Page<Address> getPage(String contact,String usrName,Integer pageNo,Integer pageSize);

    /**
     * 添加
     * @param address
     * @return
     */
    int add(Address address);

    /**
     * 详情
     * @param id
     * @return
     */
    Address detail(Integer id);

    /**
     * 修改
     * @param address
     * @return
     */
    int update(Address address);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Integer id);
}
